@extends('layouts.main')

@section('title', '显示零售合同信息(指标)')

@section('content')
<h3>@yield('title')</h3>
<div class="btn-group" role="group">
  <a href="{{ action('BusinessData\RetailContractIndicatorController@index') }}" class="btn btn-primary">返回列表</a>
</div>

@if(session('success'))
<div class="alert alert-success" role="alert">{{ session('success') }}</div>
@endif

<form class="form-horizontal">

	<div class="form-group">
		<label for="year" class="col-sm-2 control-label">年度</label>
		<div class="col-sm-2">
			<select class="form-control" id="year" name="year" disabled>
				<option value="{{ $model->year }}">{{ $model->year }}</option>
			</select>
		</div>
    </div>

	<div class="form-group">
		<label for="payer_code" class="col-sm-2 control-label">客户</label>
		<div class="col-sm-4">
			<input class="form-control" id="payer_code" name="payer_code" value="{{ $model->payer_code.'--'.$model->payer->name }}" disabled>
		</div>
    </div>

	<div class="form-group">
		<label for="category_contract_id" class="col-sm-2 control-label">合同大类</label>
		<div class="col-sm-2">
			<select class="form-control" id="category_contract_id" name="category_contract_id" disabled>
				<option value="{{ $model->category_contract->id }}">{{ $model->category_contract->name }}</option>
			</select>
		</div>
    </div>

	<div class="form-group">
		<label for="amount" class="col-sm-2 control-label">开票指标</label>
		<div class="col-sm-3">
			<input class="form-control" id="amount" name="amount" value="{{ $model->amount }}" disabled>
		</div>
    </div>

    <div class="form-group">
		<div class="col-sm-offset-2 col-sm-10">
			<a href="{{ action('BusinessData\RetailContractIndicatorController@edit', $model) }}" class="btn btn-primary">编辑</a>
			<a href="{{ action('BusinessData\RetailContractIndicatorController@create') }}" class="btn btn-primary">添加</a>
		</div>
    </div>
</form>

@endsection